<?php
namespace app\common\model;

class GroupMember extends BaseModel
{

    public function getList($GroupId)
    {
        $list = $this
            ->alias('a')
            ->where('a.GroupId', $GroupId)
            ->join('member b', 'b.user_name=a.Member_Account')
            ->field('b.user_name,b.nick_name,b.avatar_url,a.GroupId')
            ->order('a.create_time DESC')
            ->select();
        return $list;
    }
}
